package main

import (
	"fmt"
	"time"
)

func main() {
	intChan := make(chan int,1)
	ticker:=time.NewTicker(time.Second)
	go func() {
		for _=range ticker.C{
			select {
			case intChan<-1:
			case intChan<-2:
			case intChan<-3:
			}
		}
		fmt.Println("End. [sender]")
	}()
	ticker.Stop()
	time.Sleep(2*time.Second)
}
